package com.restkeeper.store.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 挂账公司人员
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CreditCompanyUser", description="挂账公司人员")
@TableName(value = "t_credit_company_user")
public class CreditCompanyUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 挂账id
     */
    @ApiModelProperty(value = "挂账id")
    @TableId(value = "credit_id")
    private String creditId;

    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称")
    @TableField(value = "user_name")
    private String userName;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 所属门店
     */
    @ApiModelProperty(value = "所属门店")
    @TableField(value = "store_id")
    private String storeId;

    /**
     * 所属商户
     */
    @ApiModelProperty(value = "所属商户")
    @TableField(value = "shop_id")
    private String shopId;

    /**
     * 最后更新时间
     */
    @ApiModelProperty(value = "最后更新时间")
    @TableField(value = "last_update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastUpdateTime;


}
